interface Test {
    (name: string | undefined): string | undefined
} 
const test: Test = (name) => name;